import request from '@/utils/request'

// 查询流服务器信息列表
export function listSteamServer(query) {
  return request({
    url: '/live-center/SteamServer/list',
    method: 'get',
    params: query
  })
}

// 查询流服务器信息详细
export function getSteamServer(id) {
  return request({
    url: '/live-center/SteamServer/' + id,
    method: 'get'
  })
}

// 新增流服务器信息
export function addSteamServer(data) {
  return request({
    url: '/live-center/SteamServer',
    method: 'post',
    data: data
  })
}

// 修改流服务器信息
export function updateSteamServer(data) {
  return request({
    url: '/live-center/SteamServer',
    method: 'put',
    data: data
  })
}

// 删除流服务器信息
export function delSteamServer(id) {
  return request({
    url: '/live-center/SteamServer/' + id,
    method: 'delete'
  })
}

// 导出流服务器信息
export function exportSteamServer(query) {
  return request({
    url: '/live-center/SteamServer/export',
    method: 'get',
    params: query
  })
}